package com.mode.behavior.TemplateMethod;

import org.junit.Test;

public class AbstractCalculatorTest {
    @Test
    public void calculate() throws Exception {
        String exp = "6-8";
        AbstractCalculator cal = new Minus();
        int result = cal.calculate(exp, "\\-");
        System.out.println(result);
    }

}